package com.damon.framwork.dal.entity;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;

/**
 * 参数配置数据实体数据项
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月20日 15:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@MappedSuperclass
@EqualsAndHashCode(callSuper = true)
@Table(name = "t_platform_config", catalog = "db_kylin_artwork")
public final class ParamConfigEntry extends BaseEntry {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long configId;

    /** 参数名称 */
    @Column(length = 64)
    private String name;

    /** 参数编码 */
    @Column(length = 16)
    private String code;

    /** 参数取值 */
    @Column(length = 64)
    private String value;

    /** 参数分组 */
    @Column(length = 16)
    private String group;

    /** 租户 */
    @Column(name = "tenant_id")
    private Long tenantId;
}
